<div class="form">
<br/><br/>
  <h2 class="gline" style="width: 170px;">רישום סיכום יומי</h2>
  <h5>לתאריך <?php echo date('d/m/Y',time()); ?></h5>
<br/>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'summaries-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset>
<div class="bline">
	<div class="row">
		<div><strong>סיכום יומי</strong></div>
                <?php $this->widget('application.extensions.nicedit.NicEdit',
                    array('id' => 'summaries_notes',
                          'options'=>array(
                                'name' => 'summaries[notes]',
                                'rows'=>7,
                                'width'=>'400px',
                            ),
                        ));
                ?>
		<?php echo $form->error($model,'notes'); ?>
	</div>
</div>
        <?php echo $form->hiddenField($model,'user_id',array('value'=>Yii::app()->user->id));?>
        <?php echo $form->hiddenField($model,'note_date',array('value'=>date('Y-m-d',time())));?>
        <?php echo $form->errorSummary($model); ?>
 </fieldset>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'סיים' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
